import request from '@/utils/request'

// 根据条件查询房屋
export const queryHouses = (cityId, price) => {
  return request({
    method: 'GET',
    url: '/houses/',
    params: {
      cityId,
      price
    }
  })
}

// 查询房屋具体信息
export const housesInfo = (id) => {
  return request({
    url: '/houses/' + id,
    method: 'GET'
  })
}

// 获取房屋查询条件
export const housesTerm = (id) => {
  return request({
    url: '/houses/condition',
    method: 'GET',
    params: {
      id
    }
  })
}
